package com.niknik.woody.rest.response;

import com.niknik.woody.core.room.Room;

import javax.xml.bind.annotation.XmlRootElement;
import java.util.Collection;
import java.util.List;

/**
 * User: niknik
 * Date: 1/25/11
 * Time: 10:02 PM
 */
@XmlRootElement
public class RoomsResponse
    extends WResponse {

  private List<RoomDto> rooms;

  public RoomsResponse() {
    super();
  }

  public RoomsResponse(Collection<Room> rooms) {
    this();
    this.rooms = RoomDto.fromRooms(rooms);
  }

  public List<RoomDto> getRooms() {
    return rooms;
  }

  public void setRooms(List<RoomDto> rooms) {
    this.rooms = rooms;
  }
}
